/**
 * 
 */
package org.t2.backstage.module.player.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Index;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.annotation.enuma.IndexType;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 *
 */
@Repository
@NoCache
@Table(comment = "白名单表", dbAlias = "backdata", indexs = {
		@Index(fields = { "channelId", "openId" }, type = IndexType.UNIQUE)})
public class WhiteList extends AbstractEntity {
	@Id(strategy = Strategy.AUTO)
    @Column(comment = "唯一ID")
    private long id;
	@Column(name = "channel_id", comment = "渠道ID")
	private long channelId;
	@Column(name = "channel_name", comment = "渠道名字")
	private String channelName;
    @Column(name = "open_id", comment = "账户ID")
    private String openId;
    @Column(name = "user_id", comment = "操作人ID")
    private long userId;
    @Column(name = "user_name", comment = "操作人名字")
    private String userName;
    @Column(comment = "备注")
    private String remark;
    
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getChannelId() {
		return channelId;
	}
	public void setChannelId(long channelId) {
		this.channelId = channelId;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
